package queuedemo;

import java.util.ArrayDeque;
import java.util.Deque;
import java.util.LinkedList;
import java.util.Queue;

/**
 * @Author 12629
 * @Description：
 */
public class Test {

    public static void main(String[] args) {
        Deque<Integer> dequeue = new LinkedList<>();

        dequeue.offerFirst(12);
        dequeue.pollLast();



        Deque<Integer> stack = new LinkedList<>();
        stack.push(10);



        Deque<Integer> stack2 = new ArrayDeque<>();

    }
    public static void main2(String[] args) {
        MyQueue queue = new MyQueue();
        queue.offer(12);
        queue.offer(23);
        queue.offer(34);
        queue.offer(45);

        System.out.println(queue.poll());
        System.out.println(queue.peek());
    }
    public static void main1(String[] args) {
        Queue<Integer> queue = new LinkedList<>();
        queue.offer(12);
        queue.offer(23);
        queue.offer(34);
        queue.offer(45);


        System.out.println(queue.poll());
        System.out.println(queue.peek());
        System.out.println(queue.isEmpty());
    }
}
